package cn.edu.ctbu.students.entity;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;

import lombok.Data;
import lombok.Getter;

@Data
@Entity(name ="students")
public class Student {
    @Getter
    @Id

    private int StudentID;

    private String Name;

    private int Gender;

    private int Age;

    public int getStudentID() {
        return StudentID;
    }

    public String getName() {
        return Name;
    }

    public int getGender() {
        return Gender;
    }

    public int getAge() {
        return Age;
    }
    public void setStudentID(int StudentID) {
        this.StudentID = StudentID;
    }
    public void setName(String name) {
        Name = name;
    }
    public void setGender(int Gender) {
        this.Gender = Gender;
    }
    public void setAge(int Age) {
        this.Age = Age;
    }
}
